-----------------------------------
Part I: Extracting the Archive - where XXX is the protocol name, e.g., 1553, 429, Serial, CAN825, etc.

In your home directory create a directory excalibur.
	cd
	mkdir excalibur
Copy all of the files into this directory.

To extract the archive (XXX-Setup.tgz) with extended attributes preserved, follow these steps:

1. Before running the script, make sure to remove any Windows-style line endings (CR + LF) from the script file. This can be done using the following command:
	dos2unix extractXXX.sh
   
2. Ensure the script is executable:
	chmod +x extractXXX.sh
   
3. Run the script:
	./extractXXX.sh
   
4. Change to XXX-Setup directory
	cd XXX-Setup

5. Optional: verify the SHA-1 hash codes of all the static & dynamic libraries and the Excalibur kernel driver.
See ‘Digital_Signature_and_Hash_Verification.pdf’ for detailed instructions.
    getfattr -d ~excalibur/XXX-Setup/XXX/<name-of--Excalibur-library>
**Note: the SHA-1 hash codes and versions need to be verified against the RevisionHistoryXXX.txt
BEFORE recompiling any of the static & dynamic libraries or the Excalibur kernel driver.

-----------------------------------
Part II: Setting up the environment:

1. Build and install the Excalibur kernel driver. Go to the driver directory and execute 
	cd driver
	./builddriver
Then [ only for PCI or PCIe cards ] execute
	sudo ./excload
2. Return to the XXX-Setup directory and type
	cd ..
	. setupenv


-----------------------------------
Part III: Build software. Make sure that you are sitting in directory XXX-Setup.

NOTE: The 4000 library (step 1) must be built before the XXX library (step 2),
as XXX depends on it.

1. 4000 library:
	make -C 4000 clean
	make -C 4000 
	make -C 4000/DemoPrograms clean
	make -C 4000/DemoPrograms 

2. XXX library:
	make -C XXX clean
	make -C XXX 
	make -C XXX/Demos clean
	make -C XXX/Demos 

-----------------------------------
Part IV: Run software

From the XXX-Setup directory, run some 4000 (card level) demo program, e.g.
	./4000/DemoPrograms/demo_irig or demo_information_4000

From the XXX-Setup directory, run some XXX (module level) demo program, e.g.
	./XXX/Demos/demo_loopback_XXX or demo_information_XXX

-----------------------------------
Part V: For more detailed instructions, please CAREFULLY read the following two files in the XXX-Setup directory:

1)ReadmeDeviceDriver.txt  [ for PCI and PCIe base cards ]
2)README-UNET-linux.txt [ for UNET cards + additional general information ]
3)Installation_Instructions.pdf [ general installation information, hardware & software ]
